﻿using Abp.Domain.Repositories;
using shenghua.Common.WordNodes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Basics.FriendlyLinks
{
    public class FriendlyLinkManager : WordNodeManager<FriendlyLink>
    {
        public FriendlyLinkManager(IRepository<FriendlyLink> friendlyLinkRepository)
            : base(friendlyLinkRepository)
        {
        }

        public Task<FriendlyLink> Add(string name, string linkAddress)
        {
            return base.Add(new FriendlyLink {
                Name = name,
                LinkAddress = linkAddress
            });
        }
    }
}
